package com.xinchuang.mapper.targetSystem;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName BlowMapper
 * @Description: TODO(写一段描述的话)
 * @Author zhangxuan
 * @Date 2022-05-26 16:18
 * @Verion V1.0
 */
public interface BlowMapper {

    @Insert(value = {
            "INSERT OR REPLACE INTO blow_levels (target_id,sys_id,message) VALUES (#{targetId},#{sysId},#{message})"
    })
    int addBlow(@Param("targetId") String id,@Param("sysId") String sysId, @Param("message") String message);

    @Delete(value = "DELETE FROM blow_levels WHERE sys_id = #{sysId}")
    int deleteBlow(@Param("sysId") String sysId);

}
